#ifndef __FILTER_CONTROL_H__
#define __FILTER_CONTROL_H__
#include "stm32f4xx.h" 


#define Int_Sort    (s16)

typedef struct
{
 float Input_Butter[3];
 float Output_Butter[3];
}Butter_BufferData;

typedef struct
{
  float a[3];
  float b[3];
}Butter_Parameter;

float invSqrt(float x);
float my_sqrt(float number);
float LPButterworth(short curr_input,Butter_BufferData *Buffer,Butter_Parameter *Parameter);
float GildeAverageValueFilter_MAG(float NewValue,float *Data);
float constrain(float value, const float min_val, const float max_val);

#endif


